package com.icss.OA.controller;

import com.icss.OA.dao.HelloMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;



@RestController
public class HelloController {

    @Autowired
    HelloMapper mapper;

    @GetMapping("hello.action")
    public String hello(String name) {
//http://localhost:8080/hello.action?name=tom
        return "hello , " + name + "系统时间" + mapper.getDate();
    }

}
